import java.util.Scanner;

public class Character判断 {
    public boolean isLetter1(char i){
        return (Character.isLetter(i) ? true: false);
    }
    public boolean isDight(char i){
        return (Character.isDigit(i) ? true : false);
    }
    public boolean isUperCase(char i){
        return (Character.isUpperCase(i) ? true : false);
    }
    public boolean isLowerCase(char i){
        return (Character.isLowerCase(i) ? true : false);
    }
    public boolean isWhitespace(char i){
        return (Character.isWhitespace(i) ? true : false);
    }
    public boolean isLetterOrDigit(char i){
        return (Character.isLetterOrDigit(i) ? true : false);
    }
    public boolean isSpaceChar(char i){
        return (Character.isSpaceChar(i) ? true : false);
    }


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一串字符");
        String next = scanner.next();
//       请将字符串转为数组

        char[] nextArray = next.toCharArray();
        Character判断 character判断 = new Character判断();
        for(char i:nextArray){

            System.out.println("isLetter="+ character判断.isLetter1(i));
            boolean isDight = new Character判断().isDight(i);
            System.out.println("isLetter="+ isDight);
            Character判断 isUperCase = new Character判断();
            System.out.println("isLetter="+ isUperCase);
            Character判断 isLowerCase = new Character判断();
            System.out.println("isLetter="+ isLowerCase);
            Character判断 isWhitespace = new Character判断();
            System.out.println("isLetter="+ isWhitespace);
            Character判断 isLetterOrDigit = new Character判断();
            System.out.println("isLetter="+ isLetterOrDigit);
            Character判断 isSpaceChar = new Character判断();
            System.out.println("isLetter="+ isSpaceChar);
        }


    }
}
